from django.contrib import admin
from django.urls import path, include
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView, SpectacularRedocView

from demoapp.web_views import DemoTemplate

urlpatterns = [
    path('admin/', admin.site.urls),
    path('chatgpt/',include('demoapp.urls')),
    path('', DemoTemplate.as_view()),
    # 。。。。
    path('doc/schema/', SpectacularAPIView.as_view(), name='schema'),
    path('doc/schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
    path('doc/schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc')
]
